package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;
import org.jsola.core.validator.Const;
import org.jsola.hr.constant.EmpInfoRequireType;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.EmpCertificateRequireExample.E_END_TIME;
import static org.jsola.hr.example.EmpCertificateRequireExample.E_LEVEL;
import static org.jsola.hr.example.EmpCertificateRequireExample.E_NAME;
import static org.jsola.hr.example.EmpCertificateRequireExample.E_NUMBER;
import static org.jsola.hr.example.EmpCertificateRequireExample.E_REMARK;
import static org.jsola.hr.example.EmpCertificateRequireExample.E_START_TIME;
import static org.jsola.hr.example.EmpCertificateRequireExample.E_TYPE;
import static org.jsola.hr.example.EmpCertificateRequireExample.M_END_TIME_ENUM_NOT_MATCH;
import static org.jsola.hr.example.EmpCertificateRequireExample.M_LEVEL_ENUM_NOT_MATCH;
import static org.jsola.hr.example.EmpCertificateRequireExample.M_NAME_ENUM_NOT_MATCH;
import static org.jsola.hr.example.EmpCertificateRequireExample.M_NUMBER_ENUM_NOT_MATCH;
import static org.jsola.hr.example.EmpCertificateRequireExample.M_REMARK_ENUM_NOT_MATCH;
import static org.jsola.hr.example.EmpCertificateRequireExample.M_START_TIME_ENUM_NOT_MATCH;
import static org.jsola.hr.example.EmpCertificateRequireExample.M_TYPE_ENUM_NOT_MATCH;
import static org.jsola.hr.example.EmpCertificateRequireExample.N_END_TIME;
import static org.jsola.hr.example.EmpCertificateRequireExample.N_LEVEL;
import static org.jsola.hr.example.EmpCertificateRequireExample.N_NAME;
import static org.jsola.hr.example.EmpCertificateRequireExample.N_NUMBER;
import static org.jsola.hr.example.EmpCertificateRequireExample.N_REMARK;
import static org.jsola.hr.example.EmpCertificateRequireExample.N_START_TIME;
import static org.jsola.hr.example.EmpCertificateRequireExample.N_TYPE;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【公司员工证书所需信息】的参数")
@Data
public class EmpCertificateRequireUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_TYPE, example = E_TYPE, allowableValues = EmpInfoRequireType.VALUES_STR)
    @Const(constClass = EmpInfoRequireType.class, message = M_TYPE_ENUM_NOT_MATCH)
    private Integer type;

    @ApiModelProperty(notes = N_NAME, example = E_NAME, allowableValues = EmpInfoRequireType.VALUES_STR)
    @Const(constClass = EmpInfoRequireType.class, message = M_NAME_ENUM_NOT_MATCH)
    private Integer name;

    @ApiModelProperty(notes = N_LEVEL, example = E_LEVEL, allowableValues = EmpInfoRequireType.VALUES_STR)
    @Const(constClass = EmpInfoRequireType.class, message = M_LEVEL_ENUM_NOT_MATCH)
    private Integer level;

    @ApiModelProperty(notes = N_NUMBER, example = E_NUMBER, allowableValues = EmpInfoRequireType.VALUES_STR)
    @Const(constClass = EmpInfoRequireType.class, message = M_NUMBER_ENUM_NOT_MATCH)
    private Integer number;

    @ApiModelProperty(notes = N_START_TIME, example = E_START_TIME, allowableValues = EmpInfoRequireType.VALUES_STR)
    @Const(constClass = EmpInfoRequireType.class, message = M_START_TIME_ENUM_NOT_MATCH)
    private Integer startTime;

    @ApiModelProperty(notes = N_END_TIME, example = E_END_TIME, allowableValues = EmpInfoRequireType.VALUES_STR)
    @Const(constClass = EmpInfoRequireType.class, message = M_END_TIME_ENUM_NOT_MATCH)
    private Integer endTime;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK, allowableValues = EmpInfoRequireType.VALUES_STR)
    @Const(constClass = EmpInfoRequireType.class, message = M_REMARK_ENUM_NOT_MATCH)
    private Integer remark;


}

